/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2018-11-28 Time: 21:58
 *
 * 提示性弹出框
 */

import React, {Component} from 'react';
import {
  StyleSheet,
  View,
  Text
} from 'react-native';
import PropTypes from 'prop-types';
import {FONT_COLOR_TITLE} from "../../constant/PHColors"

export default class TipModalView extends Component {

  static propTypes = {
    text: PropTypes.string
  }

  render() {
    return (
      <View style={styles.body}>
        <Text style={styles.text}>
          {this.props.text}
        </Text>
      </View>
    )
  }
}

const styles = StyleSheet.create({

  body: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    marginLeft: 10,
    marginRight: 10
  },

  text: {
    fontSize: 16,
    color: FONT_COLOR_TITLE
  }

});